package com.chris;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication()
@MapperScan("com.chris.mapper")
// @EnableScheduling // 开启定时任务注解
public class DooneApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(DooneApplication.class, args);
	}

	// 若打成war包，放开如下代码，修改pom文件
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//		// 注意的Application是启动类，就是main方法所属的类
//		return builder.sources(DooneApplication.class);
//	}

}

